package com.xdf.ecommerce.controller;

import com.xdf.ecommerce.service.SleuthTraceInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chanchaw
 * @create 2025-10-23 9:41
 */
@RequiredArgsConstructor
@Slf4j
@RestController
@RequestMapping("/sleuth")
public class SleuthTraceInfoController {
    private final SleuthTraceInfoService service;
    @GetMapping("/loginfo")
    public void logCurrentTraceInfo(){
        service.logCurrentTraceInfo();
    }
}
